package com.copm.ifm.common.process.define.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.copm.ifm.base.api.pojo.BasePO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * 流程条件表
 *
 * @author zzf
 * @since 2019-04-11
 */
@Getter
@Setter
@TableName("pub_process_condition")
@ApiModel(value = "PubProcessCondition对象", description = "流程条件表")
public class ProcessDefineCondition extends BasePO {

    @ApiModelProperty(value = "主键ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("涉及到的表对象 二选一：用户表、流程对象表名")
    private String targetName;

    @ApiModelProperty("涉及到的字段名")
    private String field;

    /**
     * @see com.copm.ifm.common.process.core.emum.CompareTypeEnum
     */
    @ApiModelProperty("比较类型")
    private Integer compareType;

    @ApiModelProperty("比较的值（部分用数组的json字符串形式保存）")
    private String vals;

}
